﻿namespace Oddo.Concept.Crm.Common.Presentation.Views
{
    using System;
    using System.Windows;
    using Microsoft.Practices.Unity;
    using Oddo.Concept.Crm.Common.Presentation.Extensions;
    using Oddo.Concept.Crm.Common.Presentation.Interfaces;
    using Oddo.Concept.Crm.Common.Presentation.ViewModels;

    /// <summary>
    /// Interaction logic for AuthenticationView.xaml
    /// </summary>
    public partial class SplashView : Window, ISplashView
    {
        public SplashView()
        {
            InitializeComponent();
        }

        [Dependency]
        public SplashViewModel ViewModel
        {
            set { DataContext = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        public void FadeOut()
        {
            this.FadeOut(TimeSpan.FromMilliseconds(500),Close);
        }
    }
}
